import React, { Component } from 'react'

export default class Son extends Component {
    render() {
        //console.log(this);
        //const { userinfo } = this.props
        return (
            <div>
                {/* <p>我是子组件-{userinfo.name}--{userinfo.age}</p> */}

                <p>我是子组件</p>
            </div>
        )
    };

    componentDidMount() {
        // console.log(this.props.fathertochildFn());
    };
    myselfFn(data) {
        console.log('data', data)
    }
}
